![]() |
YNQ
YNQ-1.5.0
|
Macros | |
| #define | SYThread pthread_t |
| #define | syIsValidThread(_taskId_) TRUE |
| #define | syThreadGetCurrent pthread_self |
| #define | syThreadDestroy(_taskId_) pthread_cancel(_taskId_); |
Functions | |
| void | syThreadStart (NQ_BOOL isRT, NQ_INT priorityLevel, SYThread *taskIdPtr, void(*startpoint)(void), NQ_BOOL background) |
Thread management calls.
| #define SYThread pthread_t |
TID - thread handle
| #define syIsValidThread | ( | _taskId_ | ) | TRUE |
| #define syThreadGetCurrent pthread_self |
| #define syThreadDestroy | ( | _taskId_ | ) | pthread_cancel(_taskId_); |
| void syThreadStart | ( | NQ_BOOL | isRT, |
| NQ_INT | priorityLevel, | ||
| SYThread * | taskIdPtr, | ||
| void(*)(void) | startpoint, | ||
| NQ_BOOL | background | ||
| ) |
Create an internal thread
| isRT | Whether to set priority level according to priorityLevel |
| priorityLevel | The priority level of the thread |
| taskIdPtr | Pointer to a thread handle to create |
| startpoint | Pointer to the function to be used as the thread startpoint |
| background | TRUE if the thread should have low priority. FALSE if the thread should have normal priority. |